<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.sysPro"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%String titlename="地理位置";%>
<HTML>
<HEAD>
    <TITLE><%=titlename%></TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <LINK href="Admin_Style.css" type=text/css rel=stylesheet>
<%
			{
				sysPro sPro = new sysPro();
%>	
    <script src="http://ditu.google.com/maps?file=api&amp;v=2&amp;key=<%=sPro.getMapKey()%>"
            type="text/javascript"></script>
			        
        <script type="text/javascript">

            //<![CDATA[
			var xmlHttp; 
			
			var ICONS = [];
            var map = null;
            var mgr = null;
			var clat = <%=sPro.getCLat()%>;
			var clng = <%=sPro.getCLng()%>;
            
            function load() {

                map = new GMap2(document.getElementById("map_canvas"));
                map.addControl(new GLargeMapControl());
                map.addMapType(G_PHYSICAL_MAP);
                //map.addControl(new GMapTypeControl());
                map.addControl(new GMenuMapTypeControl());
                map.addControl(new GOverviewMapControl());
                map.addControl(new GScaleControl());

                map.setCenter(new GLatLng(clat, clng), 9);

                GEvent.addListener(map, "moveend", function() {
                    var center = map.getCenter();
					document.getElementById("txtlat").value = center.lat();
					document.getElementById("txtlng").value = center.lng();
                });
            }

			window.onload = load;
			window.onUnload = GUnload;

</script>

</HEAD>


<BODY onLoad="load()" onUnload="GUnload()" style="margin:2; overflow:hidden">

<script language="javascript" src="jscheck.js">
</script>
<script>
	function btnReturn(){
	     document.frmReturn.submit();
	}
</script>
<script>
	function btnModifyU(){
		document.Jz_myform.seraction.value="sermodCen";
		document.Jz_myform.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>

<TABLE class="border" width="100%" cellSpacing="1" cellPadding="2" align="center" border="0">
				
                    <FORM name="Jz_myform" action="ser_syspara" method="post">
                        <!--添加数据表单开始cs.jsp-->
                            <TR class=tdbg>
                              <TD width="8%" height="26" class=tdbg5><p >地理位置：</p>                                </TD>
                              <TD width="17%" height="26"><input type="text" name="T1" id="pcenter" size="20" maxlength="128" value="<%=sPro.getPCenter()%>"></TD>
                              <TD width="7%" height="26" class=tdbg5><p >过滤参数：</p>                                </TD>
                              <TD width="19%" height="26"><input type="text" name="T1" id="pfilter" size="20" maxlength="128" value="<%=sPro.getPFilter()%>"></TD>
                              <TD width="7%" height="26" class=tdbg5><p >经度：</p>                                </TD>
                              <TD width="18%" height="26"><input type="text" name="T1" id="txtlng" size="26" maxlength="128" value="<%=sPro.getCLng()%>"></TD>
                              <TD width="6%" height="26" class=tdbg5><p >纬度：</p>                                </TD>
                              <TD width="18%" height="26"><input type="text" name="T1" id="txtlat" size="26" maxlength="128" value="<%=sPro.getCLat()%>"></TD>
                            </TR>
<%
			}
%>									
							<TR class=tdbg>
                                <TD class=tdbg5 height="51" colspan="8">
                                  <p align="center"><input type="hidden" name="seraction" value="sermod">
                                    <input type="button" value="修改保存" name="JzB1" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnModifyU();">
					  &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="reset" value="重置" name="JzB2" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')"></TD>
                            </TR>
                            <TR class=tdbg>
                                <TD class=tdbg5 colspan="8"><div id="map_canvas" style="width:100%; height:440px"></div></TD>
                            </TR>							
                    </FORM>
</TABLE>
</BODY></HTML>